package com.lottery.ruok.lottrey.chat.model.system;


import android.content.Context;
import android.text.Spannable;
import android.text.SpannableString;
import android.view.View;
import android.view.ViewGroup;


import io.rong.imkit.model.ProviderTag;
import io.rong.imkit.model.UIMessage;
import io.rong.imkit.widget.provider.IContainerItemProvider;

/**
 * 作者：lm
 * <p>
 * 创建日期：2018/9/12$
 * <p>
 * 描述：系统消息展示
 */
@ProviderTag(messageContent = SystemMessage.class, showPortrait = false, showProgress = true, centerInHorizontal = true,showSummaryWithName = false)
public class SystemMessageItemProvider extends IContainerItemProvider.MessageProvider<SystemMessage> {
    @Override
    public void bindView(View view, int i, SystemMessage systemMessage, UIMessage uiMessage) {
    }

    @Override
    public Spannable getContentSummary(SystemMessage systemMessage) {
        return new SpannableString("[ 系统提示 ]");
    }

    @Override
    public void onItemClick(View view, int i, SystemMessage systemMessage, UIMessage uiMessage) {

    }

    @Override
    public View newView(Context context, ViewGroup viewGroup) {
        return null;
    }
}
